<h1 style="color:#FF3300;margin-bottom:10px"><?php echo $package['title']." - ".$package['provide'] ?>&nbsp;&nbsp; 
<a href="javascript:void(0);" id="btnview"><img title="Package's Information" src="<?php echo base_url();?>public/images/eye.jpg" height="30"/></a></h1>
<table id="boxview">
	<tr>
    	<th align="right" style="padding:4px;">Description</th>
        <td style="padding:4px;" colspan="7"><?php echo $package['description'] ?></td>
    </tr>
    <tr>
    	<th align="right" style="padding:4px;">Destination</th>
        <td style="padding:4px;" colspan="7"><?php echo $package['destination'] ?></td>
    </tr>
    <tr>
    	<th align="right" style="padding:4px;">Overview</th>
        <td style="padding:4px;" colspan="7"><?php echo $package['overview'] ?></td>
    </tr>
    <tr>
    	<th align="right" style="padding:4px;">Itinerary</th>
        <td style="padding:4px;" colspan="7"><?php echo $package['itinerary'] ?></td>
    </tr>
    <tr>
    	<th align="right" style="padding:4px;">Include</th>
        <td style="padding:4px;" colspan="7"><?php echo $package['include'] ?></td>
    </tr>
    <tr>
    	<th align="right" style="padding:4px;">Exclude</th>
        <td style="padding:4px;" colspan="7"><?php echo $package['exclude'] ?></td>
    </tr>
    <tr>
    	<th align="right" style="padding:4px;">Policy</th>
        <td style="padding:4px;" colspan="7"><?php echo $package['policy'] ?></td>
    </tr>
    <tr>
    	<th align="right" style="padding:4px;">Category</th>
        <td style="padding:4px;"><?php if($package['category']==0) echo "Updating...";
									   if($package['category']==1) echo "Sight-seeing";
									   if($package['category']==2) echo "Cultural";
									   if($package['category']==3) echo "Eco/Vonlunteer";
									   if($package['category']==4) echo "Active/Sport";
									   if($package['category']==5) echo "Religious";?></td>
    	<th align="right" style="padding:4px;">Length</th>
        <td style="padding:4px;"><?php echo $package['length'] ?></td>
        <th align="right" style="padding:4px;">Number Day</th>
        <td style="padding:4px;"><?php echo $package['numberday'] ?></td>
        <th align="right" style="padding:4px;">Promotion</th>
        <td style="padding:4px;"><?php echo $package['promotion'] ?></td>
    </tr>
    <tr>
    	<th align="right" style="padding:4px;">Price</th>
        <th style="padding:4px;">For 1 : <span style="color:red"><?php echo '$'.$package['price'] ?></span></th>
        <th style="padding:4px;">For 2 : <span style="color:red"><?php echo '$'.$package['pricefor2'] ?></span></th>
        <th style="padding:4px;">For 3-4 : <span style="color:red"><?php echo '$'.$package['pricefor34'] ?></span></th>
        <th style="padding:4px;">For 5-8 : <span style="color:red"><?php echo '$'.$package['pricefor58'] ?></span></th>
        <th style="padding:4px;">For 9-12 : <span style="color:red"><?php echo '$'.$package['pricefor912'] ?></span></th>
        <th style="padding:4px;">For 13-16 : <span style="color:red"><?php echo '$'.$package['pricefor1316'] ?></span></th>
        <th style="padding:4px;">For >16 : <span style="color:red"><?php echo '$'.$package['pricefor16'] ?></span></th>
    </tr>
</table>
<input type="button" onclick="location.assign('<?php echo base_url(); ?>admin/packagereview/edit?packageid=<?php echo $_GET['packageid'] ?>');" value="Insert" style="float:right;margin-right:10px;margin-bottom:5px;"/>
<table>
  <tr>
    <th>STT</th>
    <th>Name</th>
    <th>Title</th>
    <th>Content</th>
    <th>Mark</th>
    <th>Create Date</th>
    <th>Edit / Del</th>
  </tr>
  <?php	foreach($data as $k=>$list){ ?>
  <tr>
    <th><?php echo $k+1 ?></th>
    <td><?php echo $list['name'] ?></td>
    <td><?php echo $list['title'] ?></td>
    <td><?php echo $list['contents'] ?></td>
    <th><?php echo $list['mark'] ?></th>
    <td><?php echo date('d/m/Y',strtotime($list['createdate'])); ?></td>
    <th><a href="javascript:void(0);" onclick="location.assign('<?php echo base_url(); ?>admin/packagereview/edit?packageid=<?php echo $_GET['packageid'] ?>&id=<?php echo $list['id'] ?>');"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_edit.png"/></a>
    <a href="javascript:void(0);" onClick="if(confirm('Do you want to Del this package review is information ?')) location.assign('<?php echo base_url(); ?>admin/packagereview/delete?packageid=<?php echo $_GET['packageid'] ?>&id=<?php echo $list["id"]; ?>');"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_delete.png"/></a></th>
  </tr>
  <?php }?>
</table>
<script>
	$(document).ready(function(){
		$('#boxview').hide();				   
	})
	$('#btnview').click(function(){
		$('#boxview').slideToggle(800);							 
	})
</script>
